package bean;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Employee {

	private String firstName;
	private String lastName;
	private int age = 25;
	private String[] sons = {"a", "b", "c"};
	private List<String> adds = new ArrayList<String>();
	private Map<String, String> teacher = new HashMap<String, String>();
	
	public Employee() {

		adds.add("a1");
		adds.add("a2");
		adds.add("a3");
		
		teacher.put("math", "邱强");
		teacher.put("chiness", "喻千");
		teacher.put("english", "罗先伦");
	}
	public Employee(String firstName, String lastName) {
		
		this();
		this.firstName = firstName;
		this.lastName = lastName;
	}
	
	
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	public String[] getSons() {
		return sons;
	}
	public void setSons(String[] sons) {
		this.sons = sons;
	}
	public List<String> getAdds() {
		return adds;
	}
	public void setAdds(List<String> adds) {
		this.adds = adds;
	}
	public Map<String, String> getTeacher() {
		return teacher;
	}
	public void setTeacher(Map<String, String> teacher) {
		this.teacher = teacher;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	@Override
	public String toString() {
		return "Employee [firstName=" + firstName + ", lastName=" + lastName
				+ ", age=" + age + ", sons=" + Arrays.toString(sons)
				+ ", adds=" + adds + ", teacher=" + teacher + "]";
	}
}
